Xbasic

SYS_METRIC_GET Function

Syntax

OutputString as C = SYS_METRIC_GET(C window_name,C window_metric)

Arguments

window_name

The name of the window.

window_metric

The information to retrieve:

"x" = Horizontal (left) coordinate.
"y" = Vertical (top) coordinate.
"w" = Width
"h" = Height

Description

The SYS_METRIC_GET() function returns the size and position of a window. Get size/position of a window (window_metric = x,y,w,h).

Example

dim ptr as P
ptr = form.view("Customer Information")
? sys_metric_get("Customer Information","h")
= 5.67708

Limitations

Desktop applications only.

See Also